<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
<link rel="stylesheet" href="./css/reset.css">
<link rel="stylesheet" href="./css/adm.css">
</head>
<body>
    <header>
        <h1>Blog后台管理界面</h1>
    </header>
    <div id="main">
       <div id="lside">
            <aside>
                <h4>栏目管理</h4>
                <ul>
                    <li><a href="./catlist.php">栏目列表</a></li>
                    <li><a href="./catadd.php">添加栏目</a></li>
                </ul>
            </aside>
            <aside>
                <h4>文章管理</h4>
                <ul>
                    <li><a href="./artlist.php">文章列表</a></li>
                    <li><a href="./artadd.php">发布文章</a></li>
                </ul>
            </aside>
            <aside>
                <h4>个人中心</h4>
                <ul>
                    <li><a href="./psd.php">修改密码</a></li>
                    <li><a href="./logout.php">退出登陆</a></li>
                </ul>
            </aside>
        </div>
        <div id="rside">
            <table>
                <tr>
                    <td>序号</td>
                    <td>留言时间</td>
                    <td>昵称</td>
                    <td>Email</td>
                    <td>IP</td>
                    <td>内容</td>
                    <td>操作</td>
                </tr>
                <?php foreach($comment as $v) { ?>
                <tr>
                    <td><?php echo $v['comment_id']; ?></td>
                    <td><?php echo date('Y/m/d H:i:s',$v['pubtime']); ?></td>
                    <td><a href="#"><?php echo $v['nick']; ?></a></td>
                    <td><?php echo $v['email']; ?></td>
                    <td><?php echo long2ip($v['ip']); ?></td>
                    <td><span class="badge"><?php echo $v['content']; ?></span></td>
                    <td>
                        <a href="comdel.php?comment_id=<?php echo $v['comment_id']; ?>">删除</a>
                    </td>
                </tr>
                <?php }?>
            </table>
            <div id="pagebar">
                Pages:&nbsp;
                <a href="#">1</a>
                <a href="#">2</a>
                <a href="#">3</a>
                4
                <a href="#">5</a>
                <a href="#">6</a>
            </div>
        </div>
    </div>
    <footer>
        Copyright &copy; 2015 · GeneratePress · WordPress
    </footer>
</body>
</html>